VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Office.OpenXml.Editor Namespace / OpenXmlDocumentElementCollection<T> Class / Insert Methods / Insert(Int32,OpenXmlContentInfo) Method
Syntax Requirements SeeAlso
In This Topic
    Insert(Int32,OpenXmlContentInfo) Method (OpenXmlDocumentElementCollection<T>)
    In This Topic
    Inserts an OpenXmlDocumentElement, which must be created from contentInfo, to the collection at the specified index.
    Syntax
    'Declaration
    
    Public Overloads Overridable Function Insert( _
    ByVal index
    The zero-based index at which item should be inserted.
    As System.Int32, _
    ByVal contentInfo
    The content info to insert into the collection.
    As OpenXmlContentInfo _
    ) As T
    public virtual T Insert(
    System.Int32 index,
    OpenXmlContentInfo contentInfo
    )
    public: virtual T* Insert(
    System.Int32 index,
    OpenXmlContentInfo* contentInfo
    )
    public:
    virtual T^ Insert(
    System.Int32 index,
    OpenXmlContentInfo^ contentInfo
    )

    Parameters

    index
    The zero-based index at which item should be inserted.
    contentInfo
    The content info to insert into the collection.

    Return Value

    An OpenXmlDocumentElement, which is created from contentInfo.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also